﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="EZCRS.HCMS.Web.manage.news.news_sort" Codebehind="news_sort.aspx.cs" %>
<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register assembly="Book38.Net.CustomControl" namespace="Book38.Net.CustomControl" tagprefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
   <form id="formData" runat="server">
    <uc2:titlepage id="Titlepage1" runat="server" inittitle="<%$ Resources:Site, LabNewsSort %>"></uc2:titlepage>

        <asp:GridView ID="gvList" runat="server"  AutoGenerateColumns="False" EmptyDataText="<%$ Resources:Site, LabNoData %>" Height="35px" HeaderStyle-CssClass="title1" RowStyle-CssClass="line-odd" AlternatingRowStyle-CssClass="line-even" OnRowCancelingEdit="gvList_RowCancelingEdit" OnRowEditing="gvList_RowEditing" OnRowDeleting="gvList_RowDeleting" OnRowUpdating="gvList_RowUpdating" DataKeyNames="clsid">
        <EmptyDataRowStyle HorizontalAlign="Center" Height="35px" />
        <HeaderStyle CssClass="title1" HorizontalAlign="Center"/>
        <Columns>
       <asp:TemplateField Visible="False">
       <ItemTemplate><asp:Label runat="server" ID="lab_clsid" Text='<%#DataBinder.Eval(Container.DataItem, "clsid") %>'></asp:Label></ItemTemplate>
       </asp:TemplateField> 
       <asp:TemplateField>
       
       <ItemStyle HorizontalAlign="Center" />
       <HeaderTemplate> <asp:Label runat="server" ID="LabNewsSortClsName" Text="<%$ Resources:Site, LabNewsSortClsName %>"></asp:Label></HeaderTemplate>
       <ItemTemplate><%#DataBinder.Eval(Container.DataItem, "clsname")%></ItemTemplate>
       <EditItemTemplate><cc2:WebTextBox runat="server" CssClass="text-line" ID="txt_clsname" Text='<%#DataBinder.Eval(Container.DataItem, "clsname") %>' MaxLength="40"></cc2:WebTextBox></EditItemTemplate>
       </asp:TemplateField>
       <asp:TemplateField>
       
       <ItemStyle HorizontalAlign="Center" />
       <HeaderTemplate><asp:Label runat="server" ID="LabNewsSortClsRank" Text="<%$ Resources:Site, LabNewsSortClsRank %>"></asp:Label></HeaderTemplate>
       <ItemTemplate><%#DataBinder.Eval(Container.DataItem, "clsrank")%></ItemTemplate>
       <EditItemTemplate><cc2:WebTextBox runat="server" CssClass="text-line" ID="txt_clsrank" Text='<%#DataBinder.Eval(Container.DataItem, "clsrank") %>' MaxLength="2" Width="30" onkeypress="return event.keyCode>=48&&event.keyCode<=57"></cc2:WebTextBox></EditItemTemplate>
       </asp:TemplateField>
       <asp:TemplateField>
       
       <ItemStyle HorizontalAlign="Center" Width="150px" />
       <HeaderTemplate><asp:Label runat="server" ID="LabNewsSortInDate" Text="<%$ Resources:Site, LabNewsSortInDate %>"></asp:Label></HeaderTemplate>
       <ItemTemplate  ><%#DataBinder.Eval(Container.DataItem, "Indate") %></ItemTemplate>
       </asp:TemplateField>
        <asp:TemplateField>
       
       <ItemStyle HorizontalAlign="Center" />
       <HeaderTemplate><asp:Label runat="server" ID="LabNewsSortInUser" Text="<%$ Resources:Site, LabNewsSortInUser %>"></asp:Label></HeaderTemplate>
       <ItemTemplate><%# DataBinder.Eval(Container.DataItem, "Inuser").ToString()%></ItemTemplate>
       </asp:TemplateField>
       <asp:TemplateField>
       <HeaderTemplate><asp:Label runat="server" ID="LabEdit" Text="<%$ Resources:Site, LabEdit %>"></asp:Label></HeaderTemplate>
       <HeaderStyle />
       <ItemStyle HorizontalAlign="Center" Width="50px" />
       <ItemTemplate>
       <asp:LinkButton ID="Edit" runat="server" CommandName="Edit"><img src="../../Image/modify.gif" alt="编辑" style="border:0; " /></asp:LinkButton>
       </ItemTemplate>
       <EditItemTemplate>
                <asp:LinkButton ID="Update" runat="server" CommandName="Update"><img src="../../Image/save.gif" alt="保存" style="border:0;" />保存</asp:LinkButton>&nbsp;&nbsp;
                <asp:LinkButton ID="Cancel" runat="server" CommandName="Cancel"><img src="../../Image/cancel.gif" alt="取消" style="border:0; " />取消</asp:LinkButton></EditItemTemplate>
       </asp:TemplateField>
       <asp:TemplateField>
                    <HeaderStyle />
                    <HeaderTemplate><asp:Label runat="server" ID="LabDelete" Text="<%$ Resources:Site, LabDelete %>"></asp:Label></HeaderTemplate>
                    <HeaderStyle Width="50" />
                    <ItemStyle HorizontalAlign="center" />
                    <ItemTemplate>
                        <asp:LinkButton ID="Delete" runat="server" CommandName="Delete"><img src="../../Image/delete.gif" alt="删除" style="border:0; " /></asp:LinkButton>
                     </ItemTemplate>
                    </asp:TemplateField> 
        </Columns>
            <RowStyle CssClass="line-odd" />
            <AlternatingRowStyle CssClass="line-even" />
        </asp:GridView>
        &nbsp;
       <table width="100%" cellpadding="1" cellspacing="0" class="main-table">
            <tr>
                <td align="left"><asp:Label runat="server" ID="LabNewsSortClsName" Text="<%$ Resources:Site, LabNewsSortClsName %>"></asp:Label>：</td>
                <td><cc2:WebTextBox ID="txt_clsname" runat="server" Width="150px" 
                        CssClass="text-line" MaxLength="25"><Value>
</Value></cc2:WebTextBox></td>
                <td><asp:Label runat="server" ID="LabNewsSortClsType" Text="<%$ Resources:Site, LabNewsSortClsType %>"></asp:Label>：</td>
                <td>
                <asp:RadioButtonList ID="ddl_clstype" runat="server" Width="150px"  CssClass="text-line" RepeatDirection="Horizontal" >
                     
                </asp:RadioButtonList>
                </td>
                <td><asp:Label runat="server" ID="LabNewsSortClsRank" Text="<%$ Resources:Site, LabNewsSortClsRank %>"></asp:Label>：</td>
                <td><cc2:WebTextBox ID="txt_clsrank" runat="server" Width="107px" 
                        CssClass="text-line" MaxLength=5 
                        onkeypress="return event.keyCode>=48&&event.keyCode<=57" ValidType="Int"><Value>
</Value></cc2:WebTextBox></td>
                <td>
                 <asp:HiddenField ID="ClsId" runat="server" />
                   <asp:Button ID="BtnAdd" runat="server" CssClass="bttn"
                        Text="<%$ Resources:Site, ButtonSave %>" OnClick="BtnAdd_Click" />
              </td>
            </tr>
        </table> 

    </form>
</body>
</html>